package com.qidian.mes.pojo;

import java.util.Date;


public class Process {
    private long processId;
    private String processCode;
    private String processName;
    private Character enableFlag;
    private String attention;
    private String remark;
    private String createBy;
    private Date createTime;
    private String updateBy;
    private Date updateTime;
    private Long createTimeMillis;
    private Long modifyTimeMillis;

    public Long getCreateTimeMillis() {
        if (this.createTime != null) {
            return this.createTime.getTime();
        }
        return null;
    }

    public Long getModifyTimeMillis() {
        if (this.updateTime != null) {
            return this.updateTime.getTime();
        }
        return  null;
    }

    public Process() {
    }

    public Process(long processId, String processCode, String processName, Character enableFlag, String attention, String remark, String createBy, Date createTime, String updateBy, Date updateTime) {
        this.processId = processId;
        this.processCode = processCode;
        this.processName = processName;
        this.enableFlag = enableFlag;
        this.attention = attention;
        this.remark = remark;
        this.createBy = createBy;
        this.createTime = createTime;
        this.updateBy = updateBy;
        this.updateTime = updateTime;
    }

    public long getProcessId() {
        return processId;
    }

    public void setProcessId(long processId) {
        this.processId = processId;
    }

    public String getProcessCode() {
        return processCode;
    }

    public void setProcessCode(String processCode) {
        this.processCode = processCode;
    }

    public String getProcessName() {
        return processName;
    }

    public void setProcessName(String processName) {
        this.processName = processName;
    }

    public Character getEnableFlag() {
        return enableFlag;
    }

    public void setEnableFlag(Character enableFlag) {
        this.enableFlag = enableFlag;
    }

    public String getAttention() {
        return attention;
    }

    public void setAttention(String attention) {
        this.attention = attention;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Process{" +
                "processId=" + processId +
                ", processCode='" + processCode + '\'' +
                ", processName='" + processName + '\'' +
                ", enableFlag=" + enableFlag +
                ", attention='" + attention + '\'' +
                ", remark='" + remark + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                '}';
    }
}
